DataSource for Entity Framework in WPF
C1.LiveLinq.Indexing.Search Namespace / IndexQuery<T> Class / Subindex Method / Subindex<TKey>(Subindex<T,TKey>) Method
Type of the subindex key.
Subindex to use for narrowing the search.

In This Topic
    Subindex<TKey>(Subindex<T,TKey>) Method
    In This Topic
    Used to apply subindex search to the result of a search operation.
    Syntax
    'Declaration
     
    Public Overloads Overridable Function Subindex(Of TKey)( _
       ByVal definition As Subindex(Of T,TKey) _
    ) As IIndexScanner(Of T,TKey)
    public virtual IIndexScanner<T,TKey> Subindex<TKey>( 
       Subindex<T,TKey> definition
    )

    Parameters

    definition
    Subindex to use for narrowing the search.

    Type Parameters

    TKey
    Type of the subindex key.

    Return Value

    An IIndexScanner<T,TKey> collection indexed by the subindex that can be used to perform search operations narrowing the collection.
    Remarks
    A subindex can be used to further narrow the result of a search operation, if the corresponding subindex exists in the index or subindex used to perform that search operation. For example, var idxByCity = customers.Indexes(c => c.City); var subindexByContactTitle = idxByCity.Subindexes(c => c.ContactTitle); var ownersInLondon = idxByCity.Find("London").Subindex(subindexByContactTitle).Find("Owner");
    See Also